import request from "@/utils/request";
const code = "/code";

// 查询标签列表
export function getListTag(data) {
  return request({
    url: `${code}/listTag`,
    method: "post",
    data: data,
  });
}

// 新增标签
export function insertTag(data) {
  return request({
    url: `${code}/insertTag`,
    method: "post",
    data: data,
  });
}

// 修改标签
export function updateTag(data) {
  return request({
    url: `${code}/updateTag`,
    method: "post",
    data: data,
  });
}

// 删除标签
export function deleteTag(data) {
  return request({
    url: `${code}/deleteTag`,
    method: "post",
    data: data,
  });
}

// 查询变量列表
export function getListCode(data) {
  return request({
    url: `${code}/listCode`,
    method: "post",
    data: data,
  });
}

// 新增变量
export function insertCode(data) {
  return request({
    url: `${code}/insertCode`,
    method: "post",
    data: data,
  });
}

// 修改变量
export function updateCode(data) {
  return request({
    url: `${code}/updateCode`,
    method: "post",
    data: data,
  });
}

// 删除变量
export function deleteCode(data) {
  return request({
    url: `${code}/deleteCode`,
    method: "post",
    data: data,
  });
}

// 导入变量
export const importData = `${code}/importData`;

// 导入变量模板
export const exportDataTemplate = `${code}/exportDataTemplate`;

// 导出变量
export const exportData = `${code}/exportData`;
